package com.qhy.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.qhy.service.IQuestionService;

@RequestMapping("problem")
@Controller
public class QuestionController {
	
	@Resource
	private IQuestionService service;
	
	
	@RequestMapping("queryAll.do")
	public String queryAll(@RequestParam(defaultValue = "1") Integer tr,HttpServletRequest request) {
		request.setAttribute("f_question", service.query0());
		request.setAttribute("z_question",service.queryAll());
		return "cop";
	}
	
	
	
	
	
	
}
